-- GENERATED SPELL FOR [Witchwing Ambusher] --


function spell0_3279(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3279', 0, 1)
end

function Sorts_3279(pUnit, Event)
local choix_sorts_3279 = math.random(0, 0)
if choix_sorts_3279 == 0 then
pUnit:RegisterEvent('spell0_3279', 1, 1)
end
end

function mob3279_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3279', math.random(1500, 3000), 1)
end

function mob3279_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3279_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3279_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3279, 1, 'mob3279_Action')
RegisterUnitEvent(3279, 2, 'mob3279_Leave')
RegisterUnitEvent(3279, 3, 'mob3279_Kill')
RegisterUnitEvent(3279, 4, 'mob3279_Die')
